package com.med.mapper;

import com.med.entity.CommentsDO;
import com.med.entity.DepartmentDO;
import com.med.entity.DoctorDO;
import com.med.entity.MedicalRecordDO;
import com.med.vo.CommentsVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CommentsMapper {

    //查询所有部门
    List<DepartmentDO> queryDepartment();

    //根据部门id来查询医生
    List<DoctorDO> queryDoctorByCId(@Param("commentsVO")CommentsVO commentsVO);

    //根据医生id进行查询其评论
    List<CommentsDO> queryDoctorComments(@Param("commentsVO")CommentsVO commentsVO);

    //显示评论，条件查询不同医生的评论
    List<CommentsDO> queryComments(@Param("commentsVO")CommentsVO commentsVO);

    //删除评论
    Integer updateComment(@Param("commentsVO")CommentsVO commentsVO);

    //根据医生id和用户id查询详情
    MedicalRecordDO queryUserRecords(@Param("commentsVO")CommentsVO commentsVO);
}
